package cn.yunhe.service.impl;

import cn.yunhe.dao.QuestionDao;
import cn.yunhe.entity.Question;
import cn.yunhe.service.QuestionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service
public class QuestionServiceImpl implements QuestionService {

    @Resource
    QuestionDao questionDao;


    @Override
    public boolean addQuestion(Question question) {

        questionDao.addQuestion(question);
        return false;
    }

    /**
     * (发布考试时执行)
     * 根据试卷要求的题目数目,知识点,随机获取多道题目
     * @param map
     * @return
     * Map中包含数据 int QuestionCount, List<Integer> PointId
     * 郭瀚钰
     */
    @Override
    public List<Question> getSeveralQuestion(Map<String, Object> map) {
        return null;
    }


}
